﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Text;

namespace CoreEx.Common.Validation
{
    /// <summary>
    /// Represents a class that is capable of extracting list of 
    /// <see cref="MemberExpression"/> instances that are considered valid in the current context.
    /// </summary>
    public interface IMemberExpressionExtractor 
    {
        /// <summary>
        /// 
        /// </summary>
        /// <param name="expression"></param>
        /// <returns></returns>
        IEnumerable<MemberExpression> ExtractFrom(Expression expression);
    }
}
